package cn.tedu.project.oa.assessProject.service.impl;

import cn.tedu.project.oa.assessProject.mapper.SystemModeMapper;
import cn.tedu.project.oa.assessProject.pojo.entity.SystemMode;
import cn.tedu.project.oa.assessProject.service.ISystemModeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemModeServiceImpl implements ISystemModeService {
    @Autowired
    private SystemModeMapper systemModeMapper;

    /**
     * 查询评分制度
     *
     * @param id 评分制度主键
     * @return 评分制度
     */
    @Override
    public SystemMode selectSystemModeById(Long id)
    {
        return systemModeMapper.selectSystemModeById(id);
    }

    /**
     * 查询评分制度列表
     *
     * @param systemMode 评分制度
     * @return 评分制度
     */
    @Override
    public List<SystemMode> selectSystemModeList(SystemMode systemMode)
    {
        return systemModeMapper.selectSystemModeList(systemMode);
    }

    /**
     * 新增评分制度
     *
     * @param systemMode 评分制度
     * @return 结果
     */
    @Override
    public int insertSystemMode(SystemMode systemMode)
    {
        return systemModeMapper.insertSystemMode(systemMode);
    }

    /**
     * 修改评分制度
     *
     * @param systemMode 评分制度
     * @return 结果
     */
    @Override
    public int updateSystemMode(SystemMode systemMode)
    {
        return systemModeMapper.updateSystemMode(systemMode);
    }

    /**
     * 批量删除评分制度
     *
     * @param ids 需要删除的评分制度主键
     * @return 结果
     */
    @Override
    public int deleteSystemModeByIds(Long[] ids)
    {
        return systemModeMapper.deleteSystemModeByIds(ids);
    }

    /**
     * 删除评分制度信息
     *
     * @param id 评分制度主键
     * @return 结果
     */
    @Override
    public int deleteSystemModeById(Long id)
    {
        return systemModeMapper.deleteSystemModeById(id);
    }
}
